home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMText.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  99 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMText.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMText_h__
  6. #define __gen_nsIDOMText_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMCharacterData_h__
  10. #include "nsIDOMCharacterData.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMText */
  19. #define NS_IDOMTEXT_IID_STR "a6cf9082-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMTEXT_IID \
  22.   {0xa6cf9082, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMText : public nsIDOMCharacterData {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMTEXT_IID)
  29.  
  30.   /**
  31.  * The nsIDOMText interface inherits from nsIDOMCharacterData and represents 
  32.  * the textual content (termed character data in XML) of an Element or Attr.
  33.  *
  34.  * For more information on this interface please see 
  35.  * http://www.w3.org/TR/DOM-Level-2-Core/
  36.  *
  37.  * @status FROZEN
  38.  */
  39.   /* nsIDOMText splitText (in unsigned long offset)  raises (DOMException); */
  40.   NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSIDOMTEXT \
  46.   NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval); 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  49. #define NS_FORWARD_NSIDOMTEXT(_to) \
  50.   NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) { return _to SplitText(offset, _retval); } 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  53. #define NS_FORWARD_SAFE_NSIDOMTEXT(_to) \
  54.   NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SplitText(offset, _retval); } 
  55.  
  56. #if 0
  57. /* Use the code below as a template for the implementation class for this interface. */
  58.  
  59. /* Header file */
  60. class nsDOMText : public nsIDOMText
  61. {
  62. public:
  63.   NS_DECL_ISUPPORTS
  64.   NS_DECL_NSIDOMTEXT
  65.  
  66.   nsDOMText();
  67.  
  68. private:
  69.   ~nsDOMText();
  70.  
  71. protected:
  72.   /* additional members */
  73. };
  74.  
  75. /* Implementation file */
  76. NS_IMPL_ISUPPORTS1(nsDOMText, nsIDOMText)
  77.  
  78. nsDOMText::nsDOMText()
  79. {
  80.   /* member initializers and constructor code */
  81. }
  82.  
  83. nsDOMText::~nsDOMText()
  84. {
  85.   /* destructor code */
  86. }
  87.  
  88. /* nsIDOMText splitText (in unsigned long offset)  raises (DOMException); */
  89. NS_IMETHODIMP nsDOMText::SplitText(PRUint32 offset, nsIDOMText **_retval)
  90. {
  91.     return NS_ERROR_NOT_IMPLEMENTED;
  92. }
  93.  
  94. /* End of implementation class template. */
  95. #endif
  96.  
  97.  
  98. #endif /* __gen_nsIDOMText_h__ */
  99.